<%@ page language="java" 
	contentType="text/html; 
	charset=UTF-8"
	pageEncoding="UTF-8"
	import="connectMysql.TestConnect"
	%>
	
	<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<title>检查</title>
</head>
<body>
	<%String user_id=request.getParameter("user_id"); %>
	<%
		String work_id=request.getParameter("work_id");
		String stud_name=request.getParameter("stud_name");
		String class_name=request.getParameter("class_name");
		String score=request.getParameter("score");
		String comment=request.getParameter("comment");
		boolean res=connectMysql.TestConnect.judge_homework(score,work_id,class_name,comment,stud_name);
       	
		String message="提交失败！";
		if(res)
			message="提交成功！";
	%>
	<script>
	    alert("<%= message%>");
	    window.location.href = "main.jsp?id=<%=user_id%>";
	</script>
	

</body>
</html>